package com.bayss.web.mock.annotation;

import com.bayss.web.mock.enums.MockDataType;

import java.lang.annotation.*;

/**
 * Created by pangxin on 2016/11/1.
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface MockAble {

    /**
     * 假数据产生的model类
     *
     * @return
     */
    public Class value();

    /**
     * 返回的类型，默认obj
     *
     * @return
     */
    public MockDataType type() default MockDataType.OBJECT;

    /**
     * list类型默认大小
     *
     * @return
     */
    public int length() default 10;
}
